<#include "common/main.html">
<#macro bodyId>merchandise-mg</#macro>
<#macro content>

<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">红包活动时间表
        <div class="btns">
            <a class="btn btn-success" href="${rc.contextPath}/awardTimeRule/detail">新增红包活动时间表</a>
        </div>
    </h1>
    <!--<div class="tool-bar">-->
        <!--<div class="filter">-->
            <!--<form action="" method="get">-->
                <!--<div class="form-group">-->
                    <!--<div class="col-sm-11">-->
                        <!--<div class="col4">-->
                            <!--<span class="label-text">标题：</span>-->
                            <!--<input class="form-control" name="title" value="${queryDto.title}"/>-->
                        <!--</div>-->
                        <!--<div class="col6">-->
                            <!--<span class="label-text">状态：</span>-->
                            <!--<select class="form-control" name="bannerStatus">-->
                            	   <!--<option value=""  <#if queryDto.bannerStatus==null>selected="true"</#if>>全部</option>-->
                            	   <!--<option value="1" <#if queryDto.bannerStatus=='1' >selected="true"</#if>>启用</option>-->
                            	   <!--<option value="0" <#if queryDto.bannerStatus=='0' >selected="true"</#if>>禁用</option>-->
                            <!--</select>-->
                        <!--</div>-->
                        <!--<button type="submit" class="btn btn-success">查询</button>-->
                    <!--</div>-->
                <!--</div>-->
            <!--</form>-->
        <!--</div>-->
    <!--</div>-->
    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>id</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>权重</th>
                <th>有效注册量</th>
                <th>红包未开始显示文字</th>
                <th class="operate1">操作</th>
            </tr>
            </thead>
            <tbody>
            <#list awardTimeRuleList as timeRule>
            <tr>
                <td>${timeRule.id}</td>
                <td>${timeRule.startTime}</td>
                <td>${timeRule.endTime}</td>
                <td>${timeRule.weight}</td>
                <td>${timeRule.count}</td>
                <td>${timeRule.tip}</td>
                <td class="operation">
                    <div class="dropdown">
                        <a class="J_edit" data-toggle="dropdown" href="#">操作 <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <li><a href="/awardTimeRule/detail?id=${timeRule.id}">修改</a></li>
                            <li><a href="#" class="J_acTbUpdateState" data-param='{"id":"${timeRule.id}"}'>删除</a></li>
                        </ul>
                    </div>
                </td>
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
    <#include "common/page.html">
</div>

<script>
    var config = {
  		updateStatus:'/awardTimeRule/delete'
    }
</script>

</#macro>